package com.amigo.online.provider.video.rocketmq.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import com.amigo.online.common.param.common.MqTag;

@ConfigurationProperties("rmq")
public class RocketMqProperties {

    public static final String DEFAULT = "defaultMQProducer";

    public static final String TRANS = "transactionMQProducer";

    private String namesrvAddr = "192.168.0.223:9876";

    private String defaultTopic = "online_default_topic";

    private String orderTopic = "online_order_topic";

    private String tag = MqTag.VIDEO;
    /**
     * 普通生产者
     */
    private String defaultProducer = "online_default_video_producer";

    private String transactionProducer = "online_transaction_video_producer";
    /**
     * 普通消费者
     */
    private String defaultConsumer = "online_default_video_consumer";
    /**
     * 顺序消费者
     */
    private String orderConsumer = "online_order_video_onsumer";

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getNamesrvAddr() {
        return namesrvAddr;
    }

    public void setNamesrvAddr(String namesrvAddr) {
        this.namesrvAddr = namesrvAddr;
    }

    public String getDefaultTopic() {
        return defaultTopic;
    }

    public void setDefaultTopic(String defaultTopic) {
        this.defaultTopic = defaultTopic;
    }

    public String getOrderTopic() {
        return orderTopic;
    }

    public void setOrderTopic(String orderTopic) {
        this.orderTopic = orderTopic;
    }

    public String getDefaultProducer() {
        return defaultProducer;
    }

    public void setDefaultProducer(String defaultProducer) {
        this.defaultProducer = defaultProducer;
    }

    public String getTransactionProducer() {
        return transactionProducer;
    }

    public void setTransactionProducer(String transactionProducer) {
        this.transactionProducer = transactionProducer;
    }

    public String getDefaultConsumer() {
        return defaultConsumer;
    }

    public void setDefaultConsumer(String defaultConsumer) {
        this.defaultConsumer = defaultConsumer;
    }

    public String getOrderConsumer() {
        return orderConsumer;
    }

    public void setOrderConsumer(String orderConsumer) {
        this.orderConsumer = orderConsumer;
    }

}
